﻿//*** Guidance generated code ***//
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;

using Survey.Common.Business.Services;
using Survey.Entity.Services;

using ProjectBase.Core;
using ProjectBase.Core.Service;

namespace Survey.Common
{
    public class Project : Global
    {
        #region Project Settings
        public new static IProjectSettings Settings
        {
            get { return Provider.ProjectSettings; }
        }
        #endregion Project Settings

        #region protected Provider
        protected static IProjectSettingsProvider Provider
        {
            get { return BaseProvider as IProjectSettingsProvider; }
        }
        #endregion protected Provider

        #region languages
        public static IEnumerable<Language> GetLanguages()
        {
            return LanguageFacade.GetAll();
        }

        static ILanguageFacade _languageFacade;
        static ILanguageFacade LanguageFacade
        {
            get { return _languageFacade ?? (_languageFacade = Factory.CreateInstance<ILanguageFacade>()); }
        }
        #endregion languages
    }
}